package com.levi.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author shentong
 * @since 2022/3/9 10:02 PM
 */
@Data
@ToString
@TableName("t_user")
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

	@TableId(value = "c_id", type = IdType.AUTO)
	private Integer id;

	@TableField("n_age")
	private Integer age;

	@TableField("c_username")
	private String name;

}
